﻿<Window x:Class="DrawLine.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:DrawLine"
        Title="DrawingContext.DrawLine Benchmark" Height="600" Width="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock>線の本数</TextBlock>
                <Slider Name="LineCountSlider" Value="{Binding ElementName=_drawer,Path=LineCount}" 
                        Minimum="128" Maximum="10240" SmallChange="128" LargeChange="1024" Width="200"
                        ValueChanged="LineCountSlider_ValueChanged"/>
                <TextBox Text="{Binding ElementName=_drawer,Path=LineCount}" Width="40"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock>線の太さ</TextBlock>
                <Slider Name="ThicknessSlider" Value="{Binding ElementName=_drawer,Path=LineThickness}" 
                        Minimum="0.1" Maximum="4.0" SmallChange="0.01" LargeChange="0.1" Width="200"
                        ValueChanged="ThicknessSlider_ValueChanged"/>
                <TextBox Text="{Binding ElementName=_drawer,Path=LineThickness}" Width="40"/>
                <TextBlock>描画速度</TextBlock>
                <TextBlock x:Name="_fps" Foreground="Red">FPS</TextBlock>
            </StackPanel>
        </StackPanel>
        <local:RandomLines x:Name="_drawer" Grid.Row="1" Width="512" Height="512" />
        
    </Grid>
</Window>
